<div app-header class="" left='' center='我的收货地址' right='' white='true' isapp='isapp'></div>
<header class="mui-bar mui-bar-nav mui-white" ng-show="!isapp">
    <!--如果left为空则显示返回按钮-->
    <a ng-click="goback()" class="mui-icon mui-icon-left-nav mui-pull-left"></a>
    <!--标题-->
    <h1 class="mui-title" ng-bind="'我的收货地址'"></h1>
    <!--右侧内容-->
    <button class="mui-btn mui-btn-blue mui-btn-link mui-pull-right" style="font-size: 0.3rem"   ng-click="edAddress()"></button>
</header>
<div class="p-r address-main " ng-style="{top:isapp?'0px':'44px'}">
   <ui id="address-list" >
        <li class="address-item" ng-show="itemAddress"  ng-repeat="itemAddress in myAddressList">
            <div style="padding: 0.4rem 0.4rem 0 0.4rem ;">
                <span ng-bind="itemAddress.consignee"></span>
                <div class="f-r" >{{itemAddress.phone|phoneX}}</div>
                <p ng-bind="itemAddress.provinceId+' '+itemAddress.cityId+' '+itemAddress.areaId+' '+itemAddress.address "></p>
            </div>
            <div class="line-1px"></div>
            <div  class="set-default"  > <!--src="image/integral/selected.png"-->
                <div class="d-ib"  ng-click="setDefault(itemAddress)">
                    <img ng-src="{{itemAddress.isDefault?'image/integral/no_select.png':'image/integral/selected.png'}}"   alt=""><span class="text-028-333" >设为默认地址</span>
                </div>
                <div class="f-r">
                    <button class="btn-address" ng-click="edit(itemAddress)">编辑</button>
                    <button class="btn-address" ng-click="deleteAddress(itemAddress)">删除</button>
                </div>
            </div>
        </li>
    </ui>



    <div   style="height: 2rem"></div>
    <div class="address-empty" ng-if="emptyList">
        <div class="di-f  flex-v flex-align-center "><img src="image/empty/empty_wuyonghu@2x.png"
                                                          style=" width: 82px;height: 97px;"/><br/>
            <p style=" color: #999999;   text-align: center;">尚未添加收货地址</p>
        </div>
    </div>

    <div class="exchange-bottom">
        <button id="to-exchange" class="circle-button" ng-click="toAdd()">
            添加地址
        </button>
    </div>
</div>
